#! /bin/sh

sysctl net.ipv4.ip_forward=1

#part 1
ipvsadm -A -t 10.250.12.101:https -s rr
ipvsadm -a -t 10.250.12.101:https -r 10.250.12.120:https
ipvsadm -a -t 10.250.12.101:https -r 10.250.12.121:https

#part2
ipvsadm -A -t 10.250.12.102 -p -s rr
ipvsadm -a -t 10.250.12.102 -r 10.250.12.130

#part 3
ipvsadm -A -t 10.250.12.103 -p -s rr
ipvsadm -a -t 10.250.12.103 -r 10.250.12.130
ipvsadm -a -t 10.250.12.103 -r 10.250.12.131
